package com.dodo.blog.model;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

/**
 * @author <a href="mailto:pohorelec@comvai.com">Jozef Pohorelec</a>
 */
@Entity
public class Playground
        extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @NotNull
    private String description;

    @NotNull
    private String code;

    public String getDescription()
    {
        return description;
    }

    public void setDescription( String description )
    {
        this.description = description;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode( String code )
    {
        this.code = code;
    }

    @Override
    public String toString()
    {
        return "Playground{" +
                "description='" + description + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}